﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Sinacor.Infra.Tools.ServiceRegistration.Entity
{
    public class Method : EntityBase
    {
        #region Attributes

        private int? _method_id;
        private string _method_name;
        private string _description;        
        private List<Parameter> _parameters;
        private Type _return_type;
        private string _related_tables;
        private bool? _is_return_collection;
        private Service _service;
        private StatusApproval? _StatusApproval;

        #endregion

        #region Constructor

        public Method()
        {
            _parameters = new List<Parameter>();
        }

        #endregion

        #region Properties

        public int? MethodId
        {
            get { return _method_id; }
            set { _method_id = value; }
        }

        public string MethodName
        {
            get { return _method_name; }
            set { _method_name = value; }
        }

        public string Description
        {
            get { return _description; }
            set { _description = value; }
        }

        public List<Parameter> Parameters
        {
            get { return _parameters; }
            set { _parameters = value; }
        }

        public Type ReturnType
        {
            get { return _return_type; }
            set { _return_type = value; }
        }

        public bool? IsReturnCollection
        {
            get { return _is_return_collection; }
            set { _is_return_collection = value; }
        }

        public string RelatedTables
        {
            get { return _related_tables; }
            set { _related_tables = value; }
        }

        public Service Service
        {
            get { return _service; }
            set { _service = value; }
        }

        public StatusApproval? StatusApproval
        {
            get { return _StatusApproval; }
            set { _StatusApproval = value; }
        }

        #endregion
    }
}